import Vue from "vue"
import Router from "vue-router"
import HomeContainer from '@/components/tabber/HomeContainer'
import MemberContainer from '@/components/tabber/MemberContainer'
import SearchContainer from '@/components/tabber/SearchContainer'
import ShopCarContainer from '@/components/tabber/ShopCarContainer'

// 后面这里引入可以被用户访问的页面组件
Vue.use(Router);
export default new Router({
  // 路由跳转模式，注意使用 history
  mode: "history",
  // 路由规则
  routes: [
    {path: '/home', component: HomeContainer},
    {path: '/member', component: MemberContainer},
    {path: '/shopCar', component: ShopCarContainer},
    {path: '/search', component: SearchContainer},
  ],
  linkActiveClass: 'mint-ui-active'
})
